From 9083124bb71c9db86e7ab2338b0aeb0dbbbb9a45 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 4 May 1993 02:29:57 +0000 Subject: [PATCH] * fileio.c (Fmake_symbolic_link): If a file already exists under the link's filename, delete the file which the link would replace, not the file the link would point at. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 563726d1265..7927a52d1b1 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1864,7 +1864,7 @@ This happens for interactive use with M-x.") /* If we didn't complain already, silently delete existing file. */ if (errno == EEXIST) { - unlink (XSTRING (filename)->data); + unlink (XSTRING (linkname)->data); if (0 <= symlink (XSTRING (filename)->data, XSTRING (linkname)->data)) return Qnil; } -- 2.30.2